package com.swkl.yuan.agvtask.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.Date;

/**
 * Project: AGVTask  package:  com.swkl.yuan.agvtask.entity  -  AllCondif
 * Powered by zhiyuan On 2024-06-18 16:51:15
 *
 * @author alkin
 * @version 1.0
 */
public class AllConfig {

    /**
     * 常量 非final
     */
    //完成等待时间
    public static  long finishWaitTime =  1000*60;
    //心跳地址
    public  String  heartbeatOffset;
    //plc错误地址
    public static  String  errorOffset ;
    //地址空间
    public static  String  dbAddress ;
    //ip 地址
    public  String  ip;
    //plc 类型
    public  String  plcType;
    //请求移动api
    public  String  requestMoveApi;
    //请求完成api
    public  String  requestFinishApi;



    public  void intConfig(AgvConfig agvConfig , SystemConfig systemConfig){
        finishWaitTime = systemConfig.getFinishWaitTime();
        heartbeatOffset = systemConfig.getHeartbeatOffset();
        errorOffset = systemConfig.getErrorOffset();
        dbAddress = systemConfig.getDbAddress();
        ip = systemConfig.getIp();
        plcType = systemConfig.getPlcType();
        requestMoveApi = agvConfig.getRequestMoveApi();
        requestFinishApi = agvConfig.getRequestFinishApi();
    }




}
